home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / powernowd.postinst < prev    next >
Text File  |  2008-09-15  |  784b  |  28 lines

  1. #!/bin/sh
  2.  
  3. if [ -x "/etc/init.d/powernowd.early" ]; then
  4.     update-rc.d powernowd.early start 10 2 . >/dev/null
  5.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  6.         invoke-rc.d powernowd.early start || exit 0
  7.     else
  8.         /etc/init.d/powernowd.early start || exit 0
  9.     fi
  10. fi
  11.  
  12. # Remove shutdown and reboot links; this init script does not need them.
  13. if dpkg --compare-versions "$2" lt "0.97-1ubuntu2"; then
  14.     rm -f /etc/rc0.d/K20powernowd /etc/rc6.d/K20powernowd
  15. fi
  16.  
  17. ## Automatically added by dh_installinit
  18. if [ -x "/etc/init.d/powernowd" ]; then
  19.     update-rc.d powernowd start 20 2 3 4 5 . stop 20 1 . >/dev/null
  20.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  21.         invoke-rc.d powernowd start || exit $?
  22.     else
  23.         /etc/init.d/powernowd start || exit $?
  24.     fi
  25. fi
  26. # End automatically added section
  27. #
  28.